package ej;

public class OnInterface {
    public static void main(String[] args) {
        Inter<String> inter = s -> {
            System.out.println("s = " + s);
        };

        inter.show("泛型在方法上");
    }
}

//泛型定义在接口
interface Inter<T> {
    public void show(T t);
}
